﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace AdvancedProgramming
{
    public class FileLoader
    {
        public static List<string> LoadFile(string filename)
        {
            List<string> lines = new List<string>();

            using (StreamReader sr = new StreamReader(filename))
            {
                string line;
                while ((line = sr.ReadLine()) != null)
                {
                    lines.Add(line);
                }
            }

            return lines;
        }
    }
}
